home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 5421 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: mail2news.demon.co.uk!genesis.demon.co.uk
  2. From: Lawrence Kirby <fred@genesis.demon.co.uk>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: question on borland c++ 3.1
  5. Date: Fri, 09 Feb 96 01:52:01 GMT
  6. Organization: none
  7. Message-ID: <823830721snz@genesis.demon.co.uk>
  8. References: <4f9c1o$aem@news2.widomaker.com>
  9. Reply-To: fred@genesis.demon.co.uk
  10. X-NNTP-Posting-Host: genesis.demon.co.uk
  11. X-Newsreader: Demon Internet Simple News v1.27
  12. X-Mail2News-Path: genesis.demon.co.uk
  13.  
  14. In article <4f9c1o$aem@news2.widomaker.com>
  15.            sgross@widomaker.com "Stephen Gross" writes:
  16.  
  17. >I've been using bc 3.1 for a while now, and i was wondering if anyone can 
  18. >tell me: is this a bug with the compiler? The following code:
  19. >
  20. >void flip()
  21. >{
  22. >  asm {
  23. >    cld
  24. >    lds si,[dword ptr V_PAGE]
  25. >    mov ax,0xa000
  26. >    mov es,ax
  27. >    mov di,0
  28. >    mov cx,32000
  29. >    rep movsw
  30. >    lds si,[dword ptr V_PAGE]
  31. >    mov ax,0
  32. >    mov cx,32000
  33. >    rep stosw
  34. >    }
  35. >{
  36. >
  37. >it does not work,
  38.  
  39. That is perfectly reasonable as far as the C language is concerned since
  40. it doens't define an asm keyword - your code simply isn't C. Your question
  41. is highly DOS/Borland C specific so post it to comp.os.msdos.programmer.
  42.  
  43. -- 
  44. -----------------------------------------
  45. Lawrence Kirby | fred@genesis.demon.co.uk
  46. Wilts, England | 70734.126@compuserve.com
  47. -----------------------------------------
  48.